package com.IR.user.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.IR.shop.mapper.CarsMapper;

import com.IR.shop.po.Cars;
import com.IR.shop.po.CarsExample;


@Service
public class BCarsBiz {
	@Resource(name="carsmapper")
	public CarsMapper mapper;
	
	private Cars cars;
	private List<Cars> list;
	public Cars getCars() {
		return cars;
	}
	public void setCars(Cars cars) {
		this.cars = cars;
	}
	public List<Cars> getList() {
		return list;
	}
	public void setList(List<Cars> list) {
		this.list = list;
	}
	
	public List<Cars> showUserCar(Long userid) {
		CarsExample example=new CarsExample();
		CarsExample.Criteria c=example.createCriteria();
		c.andUseridEqualTo(userid);
		return mapper.selectByExample(example);
	}
}
